<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<jsp:useBean id="persion" class="entity.Persion"></jsp:useBean>

<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>set</title>
</head>
<body>

<!-- 存值到scope -->
<c:set value="today is jun 17" var="day" scope="session"></c:set>
<c:out value="${sessionScope.day}"></c:out>

<c:set var="name1" scope="session">刘子健</c:set>
<c:out value="${sessionScope.name1}"></c:out>

<!-- 存值到javabean -->
<c:set target="${pageScope.persion}" property="name" value="zhangrui"></c:set>
<c:set target="${pageScope.persion}" property="age">18</c:set>
<c:set target="${pageScope.persion}" property="address">北京</c:set>

<c:out value="${persion.name}"></c:out>
<c:out value="${persion.age}"></c:out>
<c:out value="${persion.address}"></c:out>

<!-- remove某个对象 -->
<c:remove var="name1"/>



</body>
</html>






